from pathlib import Path


# SECURITY WARNING: don't run with debug turned on in production!

DEBUG = True


# Database
# https://docs.djangoproject.com/en/3.2/ref/settings/#databases

BASE_DIR = Path(__file__).resolve().parent.parent
DATABASES = {
    # 'default': {
    #     'ENGINE': 'django.db.backends.sqlite3',
    #     'NAME': BASE_DIR / 'db.sqlite3',
    # }
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'congjin_erp_db_dev',#在生产阶段用   部署时搞反了，将就用
        # 'NAME': 'congjin_erp_db',#在开发阶段用
        # 'NAME': 'erp_db',
        # 'NAME': 'erp_db_new',#
        # 'NAME': 'erp_db_gangcai',#钢材市场
        # 'NAME': 'erp_db_dev_new',#开发数据库
        'USER': 'root',
        # 本地开发
        'PASSWORD': 'Lx@0#5$7%7',
        'OPTIONS': {
            "init_command": "SET default_storage_engine='INNODB'"
            # 'init_command': "SET sql_mode='STRICT_TRANS_TABLES'",
            # 'charset': 'utf8mb4'
        },
        # 'HOST': '127.0.0.1'
        'HOST': '124.222.68.119',
        'PORT': '3306',
    },

}
